package javaLabs.lab1.ListQueue;

import java.io.IOException;

public class Main {
    public static void main(String[] args) {
        QueueScenario s = null;
        try {
            if (args.length != 2) {
                throw new IllegalArgumentException();
            }
            s = new QueueScenario(args[0], args[1]);
            s.startPlayScenario();
        }
        catch (IOException e) {
            System.err.println(e.getMessage());
            e.printStackTrace(System.err);
        }
        catch (IllegalArgumentException e) {
            System.err.println("Argument count isn't valid!");
            e.printStackTrace(System.err);
        }
    }
}
